﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Nuzzle.Protocol.Types.Game.Character
{
    public class CharacterMinimalInformations
    {
        public int ID { get; set; }
        public byte Level { get; set; }
        public string Name { get; set; }

        public CharacterMinimalInformations(int id, byte level, string name)
        {
            this.ID = id;
            this.Level = level;
            this.Name = name;
        }

        public void Serialize(NetworkMessage message)
        {
            message.WriterBuffer.writeInt(this.ID);
            message.WriterBuffer.writeByte(this.Level);
            message.WriterBuffer.writeUTF(this.Name);
        }
    }
}
